package ru.demo.abstarctservice.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "person")
@Schema(description = "Физическое лицо")
public class Person extends BaseEntity {

    @NotNull
    @Column(name = "last_name")
    @Schema(description = "Фамилия")
    private String lastName;

    @Column(name = "first_name")
    @Schema(description = "Имя")
    private String firstName;

    @Column(name = "middle_name")
    @Schema(description = "Отчество")
    private String middleName;

}
